package com.vincce.fitness.constant;

import org.springframework.stereotype.Component;

/**
* Created by henry on 5/5/14.
*/
@Component
public class WechatConstant {

	public static  String URL_PREFIX = "https://api.weixin.qq.com";

	public static  String OAUTH_URL_PREFIX = "https://open.weixin.qq.com/connect/oauth2";

	public static String TOKEN;

	public static String APP_ID;

	public static String APP_SECRET;

	public static final String MSG_TYPE_TEXT = "text";

	public static final String MSG_TYPE_IMAGE = "image";

	public static final String MSG_TYPE_VOICE = "voice";

	public static final String MSG_TYPE_LOCATION = "location";

	public static final String MSG_TYPE_LINK = "link";

	public static final String MSG_TYPE_EVENT = "event";

	public static final String EVENT_SUBSCRIBE = "subscribe";

	public static final String EVENT_UNSUBSCRIBE = "unsubscribe";

	public static final String EVENT_CLICK = "click";

	public static final String EVENT_VIEW = "view";

	public static final String MSG_TYPE_MUSIC = "music";

	public static final String MSG_TYPE_NEWS = "news";

	public static final Integer RELATION_TEXT				= 0;																	//菜单关联文本

	public static final Integer RELATION_VOICE				= 1;																	//菜单关联语音

	public static final Integer RELATION_IMG				= 2;																	//菜单关联图片

	public static final Integer RELATION_VIDEO				= 3;																	//菜单关联视频

	public static final Integer RELATION_IMG_CONTENT		= 4;																	//菜单关联图文

	public static final Integer RELATION_TEXT_IMG_CONTENT	= 5;																	//菜单关联文本以及图文

	public static final String LOVE_BABY = "m1s1";//爱我宝贝

	public static String MENU_CREATE_URL = URL_PREFIX + "/cgi-bin/menu/create?access_token=%s";

	public static String MENU_DELETE_URL = URL_PREFIX + "/cgi-bin/menu/delete?access_token=%s";

	public static String TEMPLATE_SEND_URL = URL_PREFIX + "/cgi-bin/message/template/send?access_token=%s";

	public static String TEMPLATE_COMBINE_URL = URL_PREFIX + "/cgi-bin/message/template/combine?access_token=%s";

	public static String USER_INFO_URL  = URL_PREFIX + "/cgi-bin/user/info?access_token=%s";//普通access_token获取用户信息

	public static String MESSAGE_SEND_URL = URL_PREFIX + "/cgi-bin/message/custom/send?access_token=%s";

	public static String AUDIO_INFO_URL = URL_PREFIX + "/cgi-bin/media/get?access_token=%s";

	public static String USER_GROUP_URL = URL_PREFIX + "/cgi-bin/groups/get?access_token=%s";

	public static String CREATE_INFO_URL = URL_PREFIX + "/cgi-bin/qrcode/create?access_token=%s";

	public static String FILE_UPLOAD_URL = URL_PREFIX + "/cgi-bin/media/upload?access_token=%s";

	public static String GET_USER_URL  = URL_PREFIX + "/cgi-bin/user/get?access_token=%s";//oatu用户点击获取用户信息

	public static String PAY_NOTIFY = URL_PREFIX + "/pay/delivernotify?access_token=%s";

	public static String UPDATE_FEEDBACK_URL = URL_PREFIX + "/payfeedback/update?access_token=%s";

	/**
	 * 项目访问路径
	 */
	public static String BASE_SERVER_URL;

	/**
	 * 商户Id
	 */
	public static String PARTNER_ID;

	/**
	 * 商户key
	 */
	public static String PARTNER_KEY;

	/**
	 *
	 */
	public static String APP_KEY;

}
